#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>

#include <pluginui/extension/StandardMainDialogExtension.h>
#include <pluginui/manager/spi/StandardDialogContentPanelManager.h>
#include <pluginui/manager/spi/StandardSystemTrayMenuManager.h>

namespace antu
{
namespace plugin
{
namespace ui
{
StandardMainDialogExtension::StandardMainDialogExtension(QWidget* pWidget)
    : AbstractExtension(),
      m_pWidget(pWidget)
{
    this->m_pContentPanelManager = new StandardDialogContentPanelManager(pWidget);
}

StandardMainDialogExtension::StandardMainDialogExtension(QWidget *pWidget, QMenu *pContextMenu)
    : AbstractExtension(),
      m_pWidget(pWidget)
{
    this->m_pContentPanelManager = new StandardDialogContentPanelManager(pWidget);
    this->m_pMenuManager = new StandardSystemTrayMenuManager(pContextMenu);
}

QWidget *StandardMainDialogExtension::rootWidget()
{
    return this->m_pWidget;
}
}
}
}
